<#assign ctx="${rc.contextPath}">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title></title>
		<style type="text/css">
			body {
				margin-left: 0px;
				margin-top: 0px;
				background-image: url('${ctx}/images/seach_4.gif');
			}
			a:link{color:#F08334;	text-decoration: none;}
		</style>
		<link href="${ctx}/css/common.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="${ctx}/js/jquery-1.4.4.min.js"></script>
	</head>

	<body>
		<table width="90%" height=100% border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height=25 id=location ><div align="left"><img src="${ctx}/images/location_arrow.gif" width="8" height="11" align="absmiddle"> 您的位置：住房补贴&gt;&gt; 住房补贴信息&gt;&gt; 查询住房补贴信息&gt;&gt; 查询结果列表</div></td>
    </tr>
</table>
<div align="left">  
                <input name="Submit42232" type="button" class="input-button" value="返 回" onClick="location.href='${ctx}/allowance/gotobutiechaxun.htm'">              
              </div>
            <table width="250%" border="0" cellpadding="0" cellspacing="0" id="list"  bgcolor="#FFFFFF">
                <tr>  
				  <TH align="center" width="50"> 操作 </TH>   
				      <TH align="center" width="100"> 补贴申请审批情况 </TH>            
                  <TH align="center" width="50"> 姓名 </TH>
				  <TH align="center" width="50"> 身份证号 </TH>
				  <TH align="center" width="100"> 公积金账号 </TH>
				  <TH align="center" width="50"> 户籍号 </TH>
				  <TH align="center" width="100"> 现任行政职务 </TH> 
				  <TH align="center" width="50"> 行政级别 </TH>
				  <TH align="center" width="100"> 现聘专业职称 </TH>
				  <TH align="center" width="50">  职称级别</TH> 
                  <TH align="center" width="50"> 领取时间 </TH>
				  <TH align="center" width="50">  领取比例</TH>
                  <TH align="center" width="50"> 一次性应领合计 </TH>
				  <TH align="center" width="50"> 已领基准补贴 </TH>
                  <TH align="center" width="100"> 已领工龄补贴 </TH>
				  <TH align="center" width="50"> 已领合计 </TH>
                   <TH align="center" width="50"> 实领基准补贴 </TH>
				  <TH align="center" width="100"> 实领工龄补贴 </TH>
				   <TH align="center" width="100">一次性实领合计 </TH>
			
                  </tr>
                  <#if page.elements??>
                  <#list page.elements as allowance>
                <tr id="${allowance.allowance_id}">
                <TD align="center">
                <#if allowance.check_status??>
                  	<#if allowance.check_status == '0'>
					<a href="${ctx}/allowance/edit/${allowance.allowance_id}.htm" style="color:#F08334;	text-decoration: none;">修改</a>
				</#if>
                  	</#if>
					<a href="#" onclick="deleteallowance('${allowance.allowance_id}');" style="color:#F08334;	text-decoration: none;">删除</a> </TD>
                  <TD align="center">
                  <#if allowance.check_status??>
                  	<#if allowance.check_status == '0'>
                  			未审批
                  		<#elseif allowance.check_status == '1'>
                  			未通过
                  		<#elseif allowance.check_status == '9'>
                  			已入库
                  	</#if>
                  	</#if></TD>
                  <TD align="center">${allowance.allowance_name!""}</TD>
				  <TD align="center">${allowance.id_card!""}</TD>
                  <TD align="center">${allowance.fund!""}</TD>
                  <TD align="center">${allowance.house_hold!""}</TD>
				  <TD align="center">${allowance.position!""}</TD>
				  <TD align="center">${allowance.position_level!""}</TD>
                  <TD align="center">${allowance.rank!""}</TD>
                  <TD align="center">${allowance.rank_level!""}</TD>
                  <TD align="center">${allowance.lqsj!""}</TD>
				  <TD align="center">
				  	${allowance.lqbl!""}
				  </TD>
				  <TD align="center">${allowance.ycxylhj!""}</TD>
				  <TD align="center">${allowance.yljzbt!""}</TD>
                  <TD align="center">${allowance.ylglbt!""}</TD>
                  <TD align="center">${allowance.ylhj!""}</TD>
				  <TD align="center">${allowance.sljzbt!""}</TD>
				  <TD align="center">${allowance.slglbt!""}</TD>
                  <TD align="center">${allowance.ycxslhj!""}</TD>
           
                  </tr>
                  </#list></#if>

              </table>





          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td id="page"><div align="right">
              <#if page.elements??>
                    <@ui.pager page=page action="${ctx}/allowance/butiechaxun.htm">
                        <input type="hidden" name="allowance_name" value="${dto.allowance_name!""}">
                        <input type="hidden" name="id_card" value="${dto.id_card!""}">
                        <input type="hidden" name="comp_name" value="${dto.comp_name!""}">
                        <input type="hidden" name="fund" value="${dto.fund!""}">
                        <input type="hidden" name="house_hold" value="${dto.house_hold}">
                        <input type="hidden" name="lqsj" value="${dto.lqsj}">
                        <input type="hidden" name="position" value="${dto.position}">
                        <input type="hidden" name="position_level" value="${dto.position_level!""}">
                        <input type="hidden" name="rank" value="${dto.rank!""}">
                        <input type="hidden" name="rank_level" value="${dto.rank_level!""}">
                        <input type="hidden" name="ycxylhj" value="${dto.ycxylhj!""}">
                        <input type="hidden" name="lqbl" value="${dto.lqbl}">
                        <input type="hidden" name="yljzbt" value="${dto.yljzbt}">
                        <input type="hidden" name="ylglbt" value="${dto.ylglbt}">
                        <input type="hidden" name="ylhj" value="${dto.ylhj!""}">
                        <input type="hidden" name="sljzbt" value="${dto.sljzbt!""}">
                        <input type="hidden" name="slglbt" value="${dto.slglbt!""}">
                        <input type="hidden" name="ycxslhj" value="${dto.ycxslhj!""}">
                    </@ui.pager>
                  </#if>
              </div></td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>　</td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="25" id="operation">                  <div align="right">  
                <input name="Submit42232" type="button" class="input-button" value="返 回" onClick="location.href='${ctx}/allowance/gotobutiechaxun.htm'">              
              </div></td>
            </tr>
          </table>
          
          <form method="post" action="${ctx}/allowance/butiechaxun.htm" id="butiechaxun">
          <input type="hidden" id="_hidden_pageNo_" name="pageNo" value="${page.getPageNumber()}">
        <input type="hidden" id="_hidden_page_size_" name="pageSize" value="20">
          <input type="hidden" name="allowance_name" value="${dto.allowance_name!""}">
            <input type="hidden" name="id_card" value="${dto.id_card!""}">
            <input type="hidden" name="comp_name" value="${dto.comp_name!""}">
            <input type="hidden" name="fund" value="${dto.fund!""}">
            <input type="hidden" name="house_hold" value="${dto.house_hold}">
            <input type="hidden" name="lqsj" value="${dto.lqsj}">
            <input type="hidden" name="position" value="${dto.position}">
            <input type="hidden" name="position_level" value="${dto.position_level!""}">
            <input type="hidden" name="rank" value="${dto.rank!""}">
            <input type="hidden" name="rank_level" value="${dto.rank_level!""}">
            <input type="hidden" name="ycxylhj" value="${dto.ycxylhj!""}">
            <input type="hidden" name="lqbl" value="${dto.lqbl}">
            <input type="hidden" name="yljzbt" value="${dto.yljzbt}">
            <input type="hidden" name="ylglbt" value="${dto.ylglbt}">
            <input type="hidden" name="ylhj" value="${dto.ylhj!""}">
            <input type="hidden" name="sljzbt" value="${dto.sljzbt!""}">
            <input type="hidden" name="slglbt" value="${dto.slglbt!""}">
            <input type="hidden" name="ycxslhj" value="${dto.ycxslhj!""}">
            </form>
	</body>
	
	<script>
		function deleteallowance(id) {
			if (confirm('确定要删除这条记录吗？')) {
			    var url = "${ctx}/allowance/delete/" + id + ".htm"
				$.ajax({
				  type: "POST",
				  url: url,
				   success: function(msg){
					   	if (msg == '0') {
					   		alert("删除失败，请联系管理员！");
					   	} else if (msg == '1') {
					   		alert("删除成功！");
				   			$('#butiechaxun').submit();
					   	}
				   }
	
				});
			}
		}
	</script>
</html>